package cn.iocoder.an.module.mold.controller.admin.devcategory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 设备分类新增/修改 Request VO")
@Data
public class DevCategorySaveReqVO {

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28070")
    private Long id;

    @Schema(description = "启用状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "启用状态不能为空")
    private Integer status;

    @Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编码不能为空")
    private String code;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "保养类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "保养类型不能为空")
    private Long upkeepCategory;

    @Schema(description = "备注", example = "随便")
    private String description;

    @Schema(description = "父id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8685")
    @NotNull(message = "父id不能为空")
    private Long parentId;

}